
#ifndef GLOBAL_H_
#define GLOBAL_H_

// MINGW will define _WIN32, to check this, 
// gcc -E -dM abc.c to verify if _WIN32 is defined.
#ifdef _WIN32
#include <windows.h>
#else
#define HANDLE long
#endif


#ifdef _WIN32
#define QUEST_COLOR		2
#define SYSTEM_COLOR	15
#define WARNING_COLOR	12
#define DESCRIPTION_COLOR	7
#define SKILL_NAME_COLOR	9
#define SPOT_NAME_COLOR		10
#define	NPC_NAME_COLOR		11
#define ITEM_NAME_COLOR		14
#define SYSTEM_HINT_COLOR	13
#else
#define QUEST_STRING "\033[0;35m%s\033[0m"    //voilet
#define SYSTEM_STRING "\033[0;37m%s\033[0m"   //white
#define WARNING_STRING "\033[0;31m%s\033[0m"  //red
#define DESCRIPTION_STRING "\033[0;32m%s\033[0m"  //green
#define SKILL_NAME_STRING "\033[0;34m%s\033[0m"   //blue
#define SPOT_NAME_STRING "\033[0;36m%s\033[0m"    //seablue
#define NPC_NAME_STRING "\033[0;33m%s\033[0m"     //yellow
#define NICK_NAME_STRING "\033[7;36m%s\033[0m"    //seablue
#define ITEM_NAME_STRING "\033[0;32m%s\033[0m"  //green
#define SYSTEM_HINT_STRING "\033[4;37m%s\033[0m"   //white
#endif



//任务
struct CQuest
{
	char stQuestDesc[128];	//最多64个中文字符
	short nFlagValue;	//0-未接受，1-接受但未完成，2-已经完成
    short nRoleIndex;   //委托者
    short nMapIndex;    //委托人所在地图
};	

#endif
